package com.woniu.supermarket.vo;

import com.woniu.supermarket.entity.Goods;
import com.woniu.supermarket.entity.Unit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;


@ApiModel(description = "封装销售退货详情订单信息")
@Data
@ToString
public class SalesReturnDetailVo implements Serializable {
    @ApiModelProperty(value = "销售详情订单id")
    private String id;

    @ApiModelProperty(value = "商品对象")
    private Goods goods;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品售价")
    private BigDecimal price;

    @ApiModelProperty(value = "购买商品价格")
    private BigDecimal promotedPrice;

    @ApiModelProperty(value = "单位对象")
    private Unit unit;

    @ApiModelProperty(value = "数量")
    private Integer quantity;

    @ApiModelProperty(value = "商品优惠")
    private String promotionDescription;

    @ApiModelProperty(value = "小计")
    private BigDecimal total;
}
